package com.frejoys.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 代理角色组表
 * @author wangzhicheng
 * @version 1.0
 * @date 2024/4/24 15:20
 */
@Data
// @EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName("j_agent_role_group")
public class AgentRoleGroup implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    //组名称
    private String name;

    //父id
    private Integer pid;

    //层级关系
    private String path;

    //管理人
    private Long userId;

    //返利比例
    private Float rebateRatio;

    // 创建时间（Unix 时间戳）
    private Integer createTime;

}
